import request from 'umi-request';
import type { SrcList } from './data.d';

interface ParamsType extends Partial<SrcList> {
    src?: string
}

export async function queryBanners(params: ParamsType) {
    return request('/api/banner_list', {
        params
    })
}